#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int n;
    while (scanf("%d", &n) != EOF)
    {
        for (int i = 0; i <= n; i++)
        {
            for (int j = 2 * i; j < 2 * n; j++) printf(" ");
            for (int m = i; m >= 0; m--) printf("*");
            printf("\n");
        }
        for (int i = 1; i <= n; i++)
        {
            for (int j = 2 * i; j > 0; j--) printf(" ");
            for (int m = i; m <= n; m++) printf("*");
            printf("\n");
        }
    }
    return 0;
}